#ifndef __THREAD_POOL_H__
#define __THREAD_POOL_H__
#include "worker/worker.h"

// 线程池结构体
typedef struct thread_pool_s
{
    worker_list_t worker_list; // 工作线程列表
    shared_data_t shared_data;  // 共享数据
} thread_pool_t;

/**
 * @brief 初始化线程池
 *
 * @param thread_pool 线程池指针
 * @param worker_count 工作线程数量
 * @return int 
 */
int thread_pool_init(thread_pool_t *thread_pool, int worker_count);

#endif